package com.dgut.sales.bean;

import java.util.Date;
import java.util.List;

public class Contract {
	private Integer contractId;
	private String salesMan;
	private String customer;
	private String states;
	private Integer money;
	private Date time;
	private Integer detailsNum;
	private List<Goods> goods;
	
	public List<Goods> getGoods() {
		return goods;
	}

	public void setGoods(List<Goods> goods) {
		this.goods = goods;
	}

	public Contract() {
		super();
	}
	
	

	public Contract(Integer contractId, String salesMan, String customer, String states, Integer money, Date time,
			List<Goods> goods) {
		super();
		this.contractId = contractId;
		this.salesMan = salesMan;
		this.customer = customer;
		this.states = states;
		this.money = money;
		this.time = time;
		this.goods = goods;
	}

	public Integer getContractId() {
		return contractId;
	}
	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}
	
	public String getSalesMan() {
		return salesMan;
	}
	public void setSalesMan(String salesMan) {
		this.salesMan = salesMan;
	}
	public String getCustomer() {
		return customer;
	}
	public void setCustomer(String customer) {
		this.customer = customer;
	}
	public String getStates() {
		return states;
	}
	public void setStates(String states) {
		this.states = states;
	}
	public Integer getMoney() {
		return money;
	}
	public void setMoney(Integer money) {
		this.money = money;
	}
	public Date getTime() {
		
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getDetailsNum() {
		return detailsNum;
	}

	public void setDetailsNum(Integer detailsNum) {
		this.detailsNum = detailsNum;
	}

	@Override
	public String toString() {
		return "Contract [contractId=" + contractId + ", salesMan=" + salesMan + ", customer=" + customer + ", states="
				+ states + ", money=" + money + ", time=" + time + ", goods=" + goods + "]";
	}
	
}